//
//  TestCollectionSectionFooterView.m
//  Demo
//
//  Created by yc on 2017/11/13.
//  Copyright © 2017年 lc4y. All rights reserved.
//

#import "TestCollectionSectionFooterView.h"
#import "Masonry.h"
@implementation TestCollectionSectionFooterView
- (void)layoutSubviews {
    [super layoutSubviews];
    self.backgroundColor = [UIColor yellowColor];
    [self.footerLabel mas_makeConstraints:^(MASConstraintMaker *make) {
        make.edges.mas_equalTo(0);
    }];
}

- (UILabel *)footerLabel {
    if (!_footerLabel) {
        _footerLabel = [UILabel new];
        _footerLabel.textAlignment = NSTextAlignmentCenter;
        _footerLabel.text = @"我是SectionFooter";
        [self addSubview:_footerLabel];
    }
    return _footerLabel;
}
@end
